package com.bite.ops.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class ClusterConsumer {
    @RabbitListener(queues = "cluster.queue")
    public void handlerMessage(Message message){
        System.out.println("cluster.queue 收到消息:"+ message);
    }
}
